home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / ICPAppSource+ICprogKit / ICAppSourceKit 1.3.sit / ICAppSourceKit1.3 / ICButtonWhat.p < prev    next >
MacBinary  |  1996-07-14  |  6.4 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: ICButtonWhat.p

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert ZX81 Sinclair BASIC (image/sinclairBASIC) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Applause Picture (image/applausePicture) ext Unsupported
1% dexvert bsdiff patch (other/bsdiffPatch) ext Unsupported
1% dexvert imgdiff patch (other/imgdiffPatch) ext Unsupported
1% dexvert MATLAB p-code (other/matlabPCode) ext Unsupported
1% dexvert WSUS Patch Storage File (other/wsusPatchStorageFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun Jul 14 17:11:25 1996, modified Sun Jul 14 17:11:25 1996, creator 'CWIE', type ASCII, 5774 bytes "ICButtonWhat.p" , at 0x170e 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 49 43 42 75 74 74 | 6f 6e 57 68 61 74 2e 70 |..ICButt|onWhat.p|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 16 8e 00 | 00 01 9a ae 0f 12 fd ae |........|........|
|00000060| 0f 12 fd 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 bd 17 00 00 |........|........|
|00000080| 75 6e 69 74 20 49 43 42 | 75 74 74 6f 6e 57 68 61 |unit ICB|uttonWha|
|00000090| 74 3b 0d 0d 69 6e 74 65 | 72 66 61 63 65 0d 0d 09 |t;..inte|rface...|
|000000a0| 75 73 65 73 0d 09 09 49 | 43 57 69 6e 64 6f 77 47 |uses...I|CWindowG|
|000000b0| 6c 6f 62 61 6c 73 3b 0d | 0d 09 66 75 6e 63 74 69 |lobals;.|..functi|
|000000c0| 6f 6e 20 57 68 61 74 4f | 70 65 6e 42 75 74 74 6f |on WhatO|penButto|
|000000d0| 6e 20 28 77 74 3a 20 57 | 69 6e 64 6f 77 54 79 70 |n (wt: W|indowTyp|
|000000e0| 65 3b 20 69 74 65 6d 3a | 20 69 6e 74 65 67 65 72 |e; item:| integer|
|000000f0| 29 3a 20 4f 53 45 72 72 | 3b 0d 09 66 75 6e 63 74 |): OSErr|;..funct|
|00000100| 69 6f 6e 20 57 68 61 74 | 43 6c 69 63 6b 42 75 74 |ion What|ClickBut|
|00000110| 74 6f 6e 20 28 77 74 3a | 20 57 69 6e 64 6f 77 54 |ton (wt:| WindowT|
|00000120| 79 70 65 3b 20 69 74 65 | 6d 3a 20 69 6e 74 65 67 |ype; ite|m: integ|
|00000130| 65 72 3b 20 65 72 3a 20 | 65 76 65 6e 74 52 65 63 |er; er: |eventRec|
|00000140| 6f 72 64 29 3a 20 4f 53 | 45 72 72 3b 0d 0d 69 6d |ord): OS|Err;..im|
|00000150| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 0d 0d 09 75 |plementa|tion...u|
|00000160| 73 65 73 0d 09 09 54 72 | 61 70 73 2c 20 49 63 6f |ses...Tr|aps, Ico|
|00000170| 6e 73 2c 20 44 69 61 6c | 6f 67 73 2c 20 46 6f 6e |ns, Dial|ogs, Fon|
|00000180| 74 73 2c 20 49 43 53 74 | 72 48 2c 20 4f 53 53 75 |ts, ICSt|rH, OSSu|
|00000190| 62 73 2c 20 0d 0d 09 09 | 49 43 4b 65 79 73 2c 20 |bs, ....|ICKeys, |
|000001a0| 49 43 41 50 49 2c 20 49 | 43 53 75 62 73 2c 20 49 |ICAPI, I|CSubs, I|
|000001b0| 43 44 69 61 6c 6f 67 73 | 2c 20 49 43 4d 69 73 63 |CDialogs|, ICMisc|
|000001c0| 53 75 62 73 2c 20 49 43 | 53 75 62 73 2c 20 49 43 |Subs, IC|Subs, IC|
|000001d0| 44 6f 63 75 6d 65 6e 74 | 20 7b 58 7d 2c 20 49 43 |Document| {X}, IC|
|000001e0| 47 6c 6f 62 61 6c 73 2c | 20 49 43 57 69 6e 64 6f |Globals,| ICWindo|
|000001f0| 77 73 20 7b 58 7d 3b 0d | 0d 09 70 72 6f 63 65 64 |ws {X};.|..proced|
|00000200| 75 72 65 20 48 61 63 6b | 44 65 76 69 63 65 4c 6f |ure Hack|DeviceLo|
|00000210| 6f 70 20 28 64 72 61 77 | 69 6e 67 52 67 6e 3a 20 |op (draw|ingRgn: |
|00000220| 52 67 6e 48 61 6e 64 6c | 65 3b 20 64 72 61 77 69 |RgnHandl|e; drawi|
|00000230| 6e 67 50 72 6f 63 3a 20 | 44 65 76 69 63 65 4c 6f |ngProc: |DeviceLo|
|00000240| 6f 70 44 72 61 77 69 6e | 67 50 72 6f 63 50 74 72 |opDrawin|gProcPtr|
|00000250| 3b 20 75 73 65 72 44 61 | 74 61 3a 20 4c 4f 4e 47 |; userDa|ta: LONG|
|00000260| 49 4e 54 3b 20 66 6c 61 | 67 73 3a 20 6c 6f 6e 67 |INT; fla|gs: long|
|00000270| 69 6e 74 29 3b 0d 09 69 | 6e 6c 69 6e 65 0d 09 09 |int);..i|nline...|
|00000280| 24 41 42 43 41 3b 0d 0d | 09 70 72 6f 63 65 64 75 |$ABCA;..|.procedu|
|00000290| 72 65 20 47 65 74 49 63 | 6f 6e 52 65 63 74 20 28 |re GetIc|onRect (|
|000002a0| 64 6c 67 3a 20 44 69 61 | 6c 6f 67 50 74 72 3b 20 |dlg: Dia|logPtr; |
|000002b0| 69 74 65 6d 3a 20 69 6e | 74 65 67 65 72 3b 20 76 |item: in|teger; v|
|000002c0| 61 72 20 72 3a 20 52 65 | 63 74 29 3b 0d 09 09 76 |ar r: Re|ct);...v|
|000002d0| 61 72 0d 09 09 09 77 69 | 64 74 68 3a 20 69 6e 74 |ar....wi|dth: int|
|000002e0| 65 67 65 72 3b 0d 09 62 | 65 67 69 6e 0d 09 09 47 |eger;..b|egin...G|
|000002f0| 65 74 44 49 74 65 6d 52 | 65 63 74 28 64 6c 67 2c |etDItemR|ect(dlg,|
|00000300| 20 69 74 65 6d 2c 20 72 | 29 3b 0d 09 09 77 69 64 | item, r|);...wid|
|00000310| 74 68 20 3a 3d 20 72 2e | 72 69 67 68 74 20 2d 20 |th := r.|right - |
|00000320| 72 2e 6c 65 66 74 3b 0d | 09 09 72 2e 72 69 67 68 |r.left;.|..r.righ|
|00000330| 74 20 3a 3d 20 72 2e 6c | 65 66 74 20 2b 20 33 32 |t := r.l|eft + 32|
|00000340| 3b 0d 09 09 72 2e 62 6f | 74 74 6f 6d 20 3a 3d 20 |;...r.bo|ttom := |
|00000350| 72 2e 74 6f 70 20 2b 20 | 33 32 3b 0d 09 09 4f 66 |r.top + |32;...Of|
|00000360| 66 73 65 74 52 65 63 74 | 28 72 2c 20 28 77 69 64 |fsetRect|(r, (wid|
|00000370| 74 68 20 2d 20 33 32 29 | 20 64 69 76 20 32 2c 20 |th - 32)| div 2, |
|00000380| 38 29 3b 0d 09 65 6e 64 | 3b 20 28 2a 20 47 65 74 |8);..end|; (* Get|
|00000390| 49 63 6f 6e 52 65 63 74 | 20 2a 29 0d 0d 09 76 61 |IconRect| *)...va|
|000003a0| 72 0d 09 09 62 75 74 74 | 6f 6e 5f 68 69 67 68 6c |r...butt|on_highl|
|000003b0| 69 67 68 74 65 64 3a 20 | 62 6f 6f 6c 65 61 6e 3b |ighted: |boolean;|
|000003c0| 0d 0d 09 70 72 6f 63 65 | 64 75 72 65 20 42 75 74 |...proce|dure But|
|000003d0| 74 6f 6e 44 65 76 69 63 | 65 4c 6f 6f 70 50 72 6f |tonDevic|eLoopPro|
|000003e0| 63 20 28 64 65 70 74 68 | 3a 20 69 6e 74 65 67 65 |c (depth|: intege|
|000003f0| 72 3b 20 64 65 76 69 63 | 65 46 6c 61 67 73 3a 20 |r; devic|eFlags: |
|00000400| 69 6e 74 65 67 65 72 3b | 20 74 61 72 67 65 74 44 |integer;| targetD|
|00000410| 65 76 69 63 65 3a 20 47 | 44 48 61 6e 64 6c 65 3b |evice: G|DHandle;|
|00000420| 20 69 74 65 6d 3a 20 6c | 6f 6e 67 69 6e 74 29 3b | item: l|ongint);|
|00000430| 0d 09 09 76 61 72 0d 09 | 09 09 64 6c 67 3a 20 44 |...var..|..dlg: D|
|00000440| 69 61 6c 6f 67 50 74 72 | 3b 0d 09 09 09 72 3a 20 |ialogPtr|;....r: |
|00000450| 52 65 63 74 3b 0d 09 09 | 09 77 69 64 74 68 3a 20 |Rect;...|.width: |
|00000460| 69 6e 74 65 67 65 72 3b | 0d 09 09 09 63 6f 6c 6f |integer;|....colo|
|00000470| 75 72 3a 20 52 47 42 43 | 6f 6c 6f 72 3b 0d 09 09 |ur: RGBC|olor;...|
|00000480| 09 66 6f 6e 74 5f 69 6e | 66 6f 3a 20 46 6f 6e 74 |.font_in|fo: Font|
|00000490| 49 6e 66 6f 3b 0d 09 09 | 09 62 6f 75 6e 64 61 72 |Info;...|.boundar|
|000004a0| 79 5f 72 65 63 74 3a 20 | 52 65 63 74 3b 0d 09 09 |y_rect: |Rect;...|
|000004b0| 09 69 63 6f 6e 5f 72 65 | 63 74 3a 20 52 65 63 74 |.icon_re|ct: Rect|
|000004c0| 3b 0d 09 62 65 67 69 6e | 0d 09 09 64 65 76 69 63 |;..begin|...devic|
|000004d0| 65 46 6c 61 67 73 20 3a | 3d 20 64 65 76 69 63 65 |eFlags :|= device|
|000004e0| 46 6c 61 67 73 3b 20 7b | 20 55 6e 75 73 65 64 20 |Flags; {| Unused |
|000004f0| 7d 0d 09 09 74 61 72 67 | 65 74 44 65 76 69 63 65 |}...targ|etDevice|
|00000500| 20 3a 3d 20 74 61 72 67 | 65 74 44 65 76 69 63 65 | := targ|etDevice|
|00000510| 3b 20 7b 20 55 6e 75 73 | 65 64 20 7d 0d 09 09 47 |; { Unus|ed }...G|
|00000520| 65 74 50 6f 72 74 28 64 | 6c 67 29 3b 0d 09 09 50 |etPort(d|lg);...P|
|00000530| 65 6e 4e 6f 72 6d 61 6c | 3b 0d 09 09 47 65 74 44 |enNormal|;...GetD|
|00000540| 49 74 65 6d 52 65 63 74 | 28 64 6c 67 2c 20 69 74 |ItemRect|(dlg, it|
|00000550| 65 6d 2c 20 72 29 3b 0d | 09 09 69 66 20 62 75 74 |em, r);.|..if but|
|00000560| 74 6f 6e 5f 68 69 67 68 | 6c 69 67 68 74 65 64 20 |ton_high|lighted |
|00000570| 74 68 65 6e 20 62 65 67 | 69 6e 0d 09 09 09 69 66 |then beg|in....if|
|00000580| 20 64 65 70 74 68 20 3d | 20 31 20 74 68 65 6e 20 | depth =| 1 then |
|00000590| 62 65 67 69 6e 0d 09 09 | 09 09 50 61 69 6e 74 52 |begin...|..PaintR|
|000005a0| 65 63 74 28 72 29 3b 0d | 09 09 09 65 6e 64 20 65 |ect(r);.|...end e|
|000005b0| 6c 73 65 20 62 65 67 69 | 6e 0d 09 09 09 09 63 6f |lse begi|n.....co|
|000005c0| 6c 6f 75 72 2e 72 65 64 | 20 3a 3d 20 6c 6f 77 72 |lour.red| := lowr|
|000005d0| 64 28 31 36 30 30 30 29 | 3b 20 20 20 20 20 28 2a |d(16000)|; (*|
|000005e0| 20 38 35 32 30 20 2a 29 | 0d 09 09 09 09 63 6f 6c | 8520 *)|.....col|
|000005f0| 6f 75 72 2e 67 72 65 65 | 6e 20 3a 3d 20 6c 6f 77 |our.gree|n := low|
|00000600| 72 64 28 31 36 30 30 30 | 29 3b 0d 09 09 09 09 63 |rd(16000|);.....c|
|00000610| 6f 6c 6f 75 72 2e 62 6c | 75 65 20 3a 3d 20 6c 6f |olour.bl|ue := lo|
|00000620| 77 72 64 28 31 36 30 30 | 30 29 3b 0d 09 09 09 09 |wrd(1600|0);.....|
|00000630| 52 47 42 42 61 63 6b 43 | 6f 6c 6f 72 28 63 6f 6c |RGBBackC|olor(col|
|00000640| 6f 75 72 29 3b 0d 09 09 | 09 09 45 72 61 73 65 52 |our);...|..EraseR|
|00000650| 65 63 74 28 72 29 3b 0d | 09 09 09 09 42 61 63 6b |ect(r);.|....Back|
|00000660| 43 6f 6c 6f 72 28 77 68 | 69 74 65 43 6f 6c 6f 72 |Color(wh|iteColor|
|00000670| 29 3b 0d 09 09 09 65 6e | 64 3b 20 28 2a 20 69 66 |);....en|d; (* if|
|00000680| 20 2a 29 0d 09 09 65 6e | 64 20 65 6c 73 65 20 62 | *)...en|d else b|
|00000690| 65 67 69 6e 0d 09 09 09 | 69 66 20 64 65 70 74 68 |egin....|if depth|
|000006a0| 20 3d 20 31 20 74 68 65 | 6e 20 62 65 67 69 6e 0d | = 1 the|n begin.|
|000006b0| 09 09 09 09 45 72 61 73 | 65 52 65 63 74 28 72 29 |....Eras|eRect(r)|
|000006c0| 3b 0d 09 09 09 65 6e 64 | 20 65 6c 73 65 20 62 65 |;....end| else be|
|000006d0| 67 69 6e 0d 09 09 09 09 | 63 6f 6c 6f 75 72 2e 72 |gin.....|colour.r|
|000006e0| 65 64 20 3a 3d 20 6c 6f | 77 72 64 28 35 37 30 31 |ed := lo|wrd(5701|
|000006f0| 35 29 3b 0d 09 09 09 09 | 63 6f 6c 6f 75 72 2e 67 |5);.....|colour.g|
|00000700| 72 65 65 6e 20 3a 3d 20 | 6c 6f 77 72 64 28 35 37 |reen := |lowrd(57|
|00000710| 30 31 35 29 3b 0d 09 09 | 09 09 63 6f 6c 6f 75 72 |015);...|..colour|
|00000720| 2e 62 6c 75 65 20 3a 3d | 20 6c 6f 77 72 64 28 35 |.blue :=| lowrd(5|
|00000730| 37 30 31 35 29 3b 0d 09 | 09 09 09 52 47 42 42 61 |7015);..|...RGBBa|
|00000740| 63 6b 43 6f 6c 6f 72 28 | 63 6f 6c 6f 75 72 29 3b |ckColor(|colour);|
|00000750| 0d 09 09 09 09 45 72 61 | 73 65 52 65 63 74 28 72 |.....Era|seRect(r|
|00000760| 29 3b 0d 09 09 09 09 42 | 61 63 6b 43 6f 6c 6f 72 |);.....B|ackColor|
|00000770| 28 77 68 69 74 65 43 6f | 6c 6f 72 29 3b 0d 09 09 |(whiteCo|lor);...|
|00000780| 09 65 6e 64 3b 20 28 2a | 20 69 66 20 2a 29 0d 09 |.end; (*| if *)..|
|00000790| 09 65 6e 64 3b 20 28 2a | 20 69 66 20 2a 29 0d 09 |.end; (*| if *)..|
|000007a0| 09 46 72 61 6d 65 52 65 | 63 74 28 72 29 3b 0d 09 |.FrameRe|ct(r);..|
|000007b0| 09 47 65 74 49 63 6f 6e | 52 65 63 74 28 64 6c 67 |.GetIcon|Rect(dlg|
|000007c0| 2c 20 69 74 65 6d 2c 20 | 69 63 6f 6e 5f 72 65 63 |, item, |icon_rec|
|000007d0| 74 29 3b 0d 09 09 62 6f | 75 6e 64 61 72 79 5f 72 |t);...bo|undary_r|
|000007e0| 65 63 74 20 3a 3d 20 69 | 63 6f 6e 5f 72 65 63 74 |ect := i|con_rect|
|000007f0| 3b 0d 09 09 49 6e 73 65 | 74 52 65 63 74 28 62 6f |;...Inse|tRect(bo|
|00000800| 75 6e 64 61 72 79 5f 72 | 65 63 74 2c 20 2d 34 2c |undary_r|ect, -4,|
|00000810| 20 2d 34 29 3b 0d 09 09 | 45 72 61 73 65 52 65 63 | -4);...|EraseRec|
|00000820| 74 28 62 6f 75 6e 64 61 | 72 79 5f 72 65 63 74 29 |t(bounda|ry_rect)|
|00000830| 3b 0d 09 09 46 72 61 6d | 65 52 65 63 74 28 62 6f |;...Fram|eRect(bo|
|00000840| 75 6e 64 61 72 79 5f 72 | 65 63 74 29 3b 0d 09 09 |undary_r|ect);...|
|00000850| 44 72 61 77 49 63 6f 6e | 28 32 30 30 20 2b 20 69 |DrawIcon|(200 + i|
|00000860| 74 65 6d 2c 20 69 63 6f | 6e 5f 72 65 63 74 2c 20 |tem, ico|n_rect, |
|00000870| 62 75 74 74 6f 6e 5f 68 | 69 67 68 6c 69 67 68 74 |button_h|ighlight|
|00000880| 65 64 29 3b 0d 09 09 54 | 65 78 74 46 6f 6e 74 28 |ed);...T|extFont(|
|00000890| 61 70 70 6c 46 6f 6e 74 | 29 3b 0d 09 09 54 65 78 |applFont|);...Tex|
|000008a0| 74 53 69 7a 65 28 39 29 | 3b 0d 09 09 47 65 74 46 |tSize(9)|;...GetF|
|000008b0| 6f 6e 74 49 6e 66 6f 28 | 66 6f 6e 74 5f 69 6e 66 |ontInfo(|font_inf|
|000008c0| 6f 29 3b 0d 09 09 77 69 | 64 74 68 20 3a 3d 20 53 |o);...wi|dth := S|
|000008d0| 74 72 69 6e 67 57 69 64 | 74 68 28 47 65 74 41 53 |tringWid|th(GetAS|
|000008e0| 74 72 69 6e 67 28 31 33 | 30 2c 20 69 74 65 6d 29 |tring(13|0, item)|
|000008f0| 29 3b 0d 09 09 4d 6f 76 | 65 54 6f 28 28 72 2e 6c |);...Mov|eTo((r.l|
|00000900| 65 66 74 20 2b 20 28 72 | 2e 72 69 67 68 74 20 2d |eft + (r|.right -|
|00000910| 20 72 2e 6c 65 66 74 29 | 20 64 69 76 20 32 29 20 | r.left)| div 2) |
|00000920| 2d 20 28 77 69 64 74 68 | 20 64 69 76 20 32 29 2c |- (width| div 2),|
|00000930| 20 72 2e 62 6f 74 74 6f | 6d 20 2d 20 32 20 2d 20 | r.botto|m - 2 - |
|00000940| 66 6f 6e 74 5f 69 6e 66 | 6f 2e 64 65 73 63 65 6e |font_inf|o.descen|
|00000950| 74 29 3b 0d 09 09 69 66 | 20 62 75 74 74 6f 6e 5f |t);...if| button_|
|00000960| 68 69 67 68 6c 69 67 68 | 74 65 64 20 74 68 65 6e |highligh|ted then|
|00000970| 20 62 65 67 69 6e 0d 09 | 09 09 54 65 78 74 4d 6f | begin..|..TextMo|
|00000980| 64 65 28 73 72 63 42 69 | 63 29 3b 0d 09 09 65 6e |de(srcBi|c);...en|
|00000990| 64 3b 20 28 2a 20 69 66 | 20 2a 29 0d 09 09 44 72 |d; (* if| *)...Dr|
|000009a0| 61 77 53 74 72 69 6e 67 | 28 47 65 74 41 53 74 72 |awString|(GetAStr|
|000009b0| 69 6e 67 28 31 33 30 2c | 20 69 74 65 6d 29 29 3b |ing(130,| item));|
|000009c0| 0d 09 09 54 65 78 74 4d | 6f 64 65 28 73 72 63 4f |...TextM|ode(srcO|
|000009d0| 72 29 3b 0d 09 65 6e 64 | 3b 20 28 2a 20 42 75 74 |r);..end|; (* But|
|000009e0| 74 6f 6e 44 65 76 69 63 | 65 4c 6f 6f 70 50 72 6f |tonDevic|eLoopPro|
|000009f0| 63 20 2a 29 0d 0d 09 70 | 72 6f 63 65 64 75 72 65 |c *)...p|rocedure|
|00000a00| 20 44 72 61 77 42 75 74 | 74 6f 6e 20 28 64 6c 67 | DrawBut|ton (dlg|
|00000a10| 3a 20 44 69 61 6c 6f 67 | 50 74 72 3b 20 69 74 65 |: Dialog|Ptr; ite|
|00000a20| 6d 3a 20 69 6e 74 65 67 | 65 72 3b 20 68 69 67 68 |m: integ|er; high|
|00000a30| 6c 69 67 68 74 65 64 3a | 20 62 6f 6f 6c 65 61 6e |lighted:| boolean|
|00000a40| 29 3b 0d 09 09 76 61 72 | 0d 09 09 09 72 3a 20 52 |);...var|....r: R|
|00000a50| 65 63 74 3b 0d 09 09 09 | 72 67 6e 3a 20 52 67 6e |ect;....|rgn: Rgn|
|00000a60| 48 61 6e 64 6c 65 3b 0d | 09 62 65 67 69 6e 0d 09 |Handle;.|.begin..|
|00000a70| 09 62 75 74 74 6f 6e 5f | 68 69 67 68 6c 69 67 68 |.button_|highligh|
|00000a80| 74 65 64 20 3a 3d 20 68 | 69 67 68 6c 69 67 68 74 |ted := h|ighlight|
|00000a90| 65 64 3b 0d 09 09 53 65 | 74 50 6f 72 74 28 64 6c |ed;...Se|tPort(dl|
|00000aa0| 67 29 3b 0d 09 09 69 66 | 20 4f 75 72 54 72 61 70 |g);...if| OurTrap|
|00000ab0| 41 76 61 69 6c 61 62 6c | 65 28 5f 44 65 76 69 63 |Availabl|e(_Devic|
|00000ac0| 65 4c 6f 6f 70 29 20 74 | 68 65 6e 20 62 65 67 69 |eLoop) t|hen begi|
|00000ad0| 6e 0d 09 09 09 47 65 74 | 44 49 74 65 6d 52 65 63 |n....Get|DItemRec|
|00000ae0| 74 28 64 6c 67 2c 20 69 | 74 65 6d 2c 20 72 29 3b |t(dlg, i|tem, r);|
|00000af0| 0d 09 09 09 72 67 6e 20 | 3a 3d 20 4e 65 77 52 67 |....rgn |:= NewRg|
|00000b00| 6e 3b 0d 09 09 09 52 65 | 63 74 52 67 6e 28 72 67 |n;....Re|ctRgn(rg|
|00000b10| 6e 2c 20 72 29 3b 0d 09 | 09 09 48 61 63 6b 44 65 |n, r);..|..HackDe|
|00000b20| 76 69 63 65 4c 6f 6f 70 | 28 72 67 6e 2c 20 40 42 |viceLoop|(rgn, @B|
|00000b30| 75 74 74 6f 6e 44 65 76 | 69 63 65 4c 6f 6f 70 50 |uttonDev|iceLoopP|
|00000b40| 72 6f 63 2c 20 69 74 65 | 6d 2c 20 30 29 3b 0d 09 |roc, ite|m, 0);..|
|00000b50| 09 09 44 69 73 70 6f 73 | 65 52 67 6e 28 72 67 6e |..Dispos|eRgn(rgn|
|00000b60| 29 3b 0d 09 09 65 6e 64 | 20 65 6c 73 65 20 62 65 |);...end| else be|
|00000b70| 67 69 6e 0d 09 09 09 42 | 75 74 74 6f 6e 44 65 76 |gin....B|uttonDev|
|00000b80| 69 63 65 4c 6f 6f 70 50 | 72 6f 63 28 31 2c 20 30 |iceLoopP|roc(1, 0|
|00000b90| 2c 20 6e 69 6c 2c 20 69 | 74 65 6d 29 3b 0d 09 09 |, nil, i|tem);...|
|00000ba0| 65 6e 64 3b 20 28 2a 20 | 69 66 20 2a 29 0d 09 65 |end; (* |if *)..e|
|00000bb0| 6e 64 3b 20 28 2a 20 44 | 72 61 77 42 75 74 74 6f |nd; (* D|rawButto|
|00000bc0| 6e 20 2a 29 0d 0d 09 70 | 72 6f 63 65 64 75 72 65 |n *)...p|rocedure|
|00000bd0| 20 55 73 65 72 49 74 65 | 6d 55 70 64 61 74 65 20 | UserIte|mUpdate |
|00000be0| 28 64 6c 67 3a 20 44 69 | 61 6c 6f 67 50 74 72 3b |(dlg: Di|alogPtr;|
|00000bf0| 20 69 74 65 6d 3a 20 69 | 6e 74 65 67 65 72 29 3b | item: i|nteger);|
|00000c00| 0d 09 62 65 67 69 6e 0d | 09 09 44 72 61 77 42 75 |..begin.|..DrawBu|
|00000c10| 74 74 6f 6e 28 64 6c 67 | 2c 20 69 74 65 6d 2c 20 |tton(dlg|, item, |
|00000c20| 66 61 6c 73 65 29 3b 0d | 09 65 6e 64 3b 20 28 2a |false);.|.end; (*|
|00000c30| 20 55 73 65 72 49 74 65 | 6d 55 70 64 61 74 65 20 | UserIte|mUpdate |
|00000c40| 2a 29 0d 0d 09 66 75 6e | 63 74 69 6f 6e 20 57 68 |*)...fun|ction Wh|
|00000c50| 61 74 4f 70 65 6e 42 75 | 74 74 6f 6e 20 28 77 74 |atOpenBu|tton (wt|
|00000c60| 3a 20 57 69 6e 64 6f 77 | 54 79 70 65 3b 20 69 74 |: Window|Type; it|
|00000c70| 65 6d 3a 20 69 6e 74 65 | 67 65 72 29 3a 20 4f 53 |em: inte|ger): OS|
|00000c80| 45 72 72 3b 0d 09 62 65 | 67 69 6e 0d 09 09 53 65 |Err;..be|gin...Se|
|00000c90| 74 44 49 74 65 6d 48 61 | 6e 64 6c 65 28 77 69 6e |tDItemHa|ndle(win|
|00000ca0| 64 6f 77 69 6e 66 6f 5b | 77 74 5d 2e 77 69 6e 64 |dowinfo[|wt].wind|
|00000cb0| 6f 77 2c 20 69 74 65 6d | 2c 20 40 55 73 65 72 49 |ow, item|, @UserI|
|00000cc0| 74 65 6d 55 70 64 61 74 | 65 29 3b 0d 09 09 57 68 |temUpdat|e);...Wh|
|00000cd0| 61 74 4f 70 65 6e 42 75 | 74 74 6f 6e 20 3a 3d 20 |atOpenBu|tton := |
|00000ce0| 6e 6f 45 72 72 3b 0d 09 | 65 6e 64 3b 20 28 2a 20 |noErr;..|end; (* |
|00000cf0| 57 68 61 74 4f 70 65 6e | 42 75 74 74 6f 6e 20 2a |WhatOpen|Button *|
|00000d00| 29 0d 0d 09 66 75 6e 63 | 74 69 6f 6e 20 57 68 61 |)...func|tion Wha|
|00000d10| 74 43 6c 69 63 6b 42 75 | 74 74 6f 6e 20 28 77 74 |tClickBu|tton (wt|
|00000d20| 3a 20 57 69 6e 64 6f 77 | 54 79 70 65 3b 20 69 74 |: Window|Type; it|
|00000d30| 65 6d 3a 20 69 6e 74 65 | 67 65 72 3b 20 65 72 3a |em: inte|ger; er:|
|00000d40| 20 65 76 65 6e 74 52 65 | 63 6f 72 64 29 3a 20 4f | eventRe|cord): O|
|00000d50| 53 45 72 72 3b 0d 09 09 | 76 61 72 0d 09 09 09 64 |SErr;...|var....d|
|00000d60| 6c 67 3a 20 44 69 61 6c | 6f 67 50 74 72 3b 0d 09 |lg: Dial|ogPtr;..|
|00000d70| 09 09 68 69 67 68 6c 69 | 67 68 74 65 64 3a 20 62 |..highli|ghted: b|
|00000d80| 6f 6f 6c 65 61 6e 3b 0d | 09 09 09 6d 6f 75 73 65 |oolean;.|...mouse|
|00000d90| 5f 70 6f 73 3a 20 50 6f | 69 6e 74 3b 0d 09 09 09 |_pos: Po|int;....|
|00000da0| 72 3a 20 52 65 63 74 3b | 0d 0d 09 09 70 72 6f 63 |r: Rect;|....proc|
|00000db0| 65 64 75 72 65 20 54 6f | 67 67 6c 65 48 69 67 68 |edure To|ggleHigh|
|00000dc0| 6c 69 67 68 74 3b 0d 09 | 09 62 65 67 69 6e 0d 09 |light;..|.begin..|
|00000dd0| 09 09 68 69 67 68 6c 69 | 67 68 74 65 64 20 3a 3d |..highli|ghted :=|
|00000de0| 20 6e 6f 74 20 68 69 67 | 68 6c 69 67 68 74 65 64 | not hig|hlighted|
|00000df0| 3b 0d 09 09 09 44 72 61 | 77 42 75 74 74 6f 6e 28 |;....Dra|wButton(|
|00000e00| 64 6c 67 2c 20 69 74 65 | 6d 2c 20 68 69 67 68 6c |dlg, ite|m, highl|
|00000e10| 69 67 68 74 65 64 29 3b | 0d 09 09 65 6e 64 3b 20 |ighted);|...end; |
|00000e20| 28 2a 20 54 6f 67 67 6c | 65 48 69 67 68 6c 69 67 |(* Toggl|eHighlig|
|00000e30| 68 74 20 2a 29 0d 0d 09 | 09 76 61 72 0d 09 09 09 |ht *)...|.var....|
|00000e40| 65 72 72 3a 20 4f 53 45 | 72 72 3b 0d 09 62 65 67 |err: OSE|rr;..beg|
|00000e50| 69 6e 0d 09 09 65 72 20 | 3a 3d 20 65 72 3b 20 7b |in...er |:= er; {|
|00000e60| 20 55 6e 75 73 65 64 20 | 7d 0d 09 09 64 6c 67 20 | Unused |}...dlg |
|00000e70| 3a 3d 20 77 69 6e 64 6f | 77 69 6e 66 6f 5b 77 74 |:= windo|winfo[wt|
|00000e80| 5d 2e 77 69 6e 64 6f 77 | 3b 0d 09 09 47 65 74 44 |].window|;...GetD|
|00000e90| 49 74 65 6d 52 65 63 74 | 28 64 6c 67 2c 20 69 74 |ItemRect|(dlg, it|
|00000ea0| 65 6d 2c 20 72 29 3b 0d | 09 09 68 69 67 68 6c 69 |em, r);.|..highli|
|00000eb0| 67 68 74 65 64 20 3a 3d | 20 66 61 6c 73 65 3b 0d |ghted :=| false;.|
|00000ec0| 09 09 72 65 70 65 61 74 | 0d 09 09 09 47 65 74 4d |..repeat|....GetM|
|00000ed0| 6f 75 73 65 28 6d 6f 75 | 73 65 5f 70 6f 73 29 3b |ouse(mou|se_pos);|
|00000ee0| 0d 09 09 09 69 66 20 50 | 74 49 6e 52 65 63 74 28 |....if P|tInRect(|
|00000ef0| 6d 6f 75 73 65 5f 70 6f | 73 2c 20 72 29 20 3c 3e |mouse_po|s, r) <>|
|00000f00| 20 68 69 67 68 6c 69 67 | 68 74 65 64 20 74 68 65 | highlig|hted the|
|00000f10| 6e 20 62 65 67 69 6e 0d | 09 09 09 09 54 6f 67 67 |n begin.|....Togg|
|00000f20| 6c 65 48 69 67 68 6c 69 | 67 68 74 3b 0d 09 09 09 |leHighli|ght;....|
|00000f30| 65 6e 64 3b 20 28 2a 20 | 69 66 20 2a 29 0d 09 09 |end; (* |if *)...|
|00000f40| 75 6e 74 69 6c 20 6e 6f | 74 20 53 74 69 6c 6c 44 |until no|t StillD|
|00000f50| 6f 77 6e 3b 0d 09 09 65 | 72 72 20 3a 3d 20 6e 6f |own;...e|rr := no|
|00000f60| 45 72 72 3b 0d 09 09 69 | 66 20 68 69 67 68 6c 69 |Err;...i|f highli|
|00000f70| 67 68 74 65 64 20 74 68 | 65 6e 20 62 65 67 69 6e |ghted th|en begin|
|00000f80| 0d 09 09 09 54 6f 67 67 | 6c 65 48 69 67 68 6c 69 |....Togg|leHighli|
|00000f90| 67 68 74 3b 0d 09 09 09 | 65 72 72 20 3a 3d 20 57 |ght;....|err := W|
|00000fa0| 69 6e 64 6f 77 73 4f 70 | 65 6e 28 57 69 6e 64 6f |indowsOp|en(Windo|
|00000fb0| 77 54 79 70 65 28 6f 72 | 64 28 57 54 5f 50 65 72 |wType(or|d(WT_Per|
|00000fc0| 73 6f 6e 61 6c 29 20 2b | 20 69 74 65 6d 20 2d 20 |sonal) +| item - |
|00000fd0| 31 29 29 3b 0d 09 09 65 | 6e 64 3b 20 28 2a 20 69 |1));...e|nd; (* i|
|00000fe0| 66 20 2a 29 0d 09 09 57 | 68 61 74 43 6c 69 63 6b |f *)...W|hatClick|
|00000ff0| 42 75 74 74 6f 6e 20 3a | 3d 20 65 72 72 3b 0d 09 |Button :|= err;..|
|00001000| 65 6e 64 3b 20 28 2a 20 | 57 68 61 74 43 6c 69 63 |end; (* |WhatClic|
|00001010| 6b 42 75 74 74 6f 6e 20 | 2a 29 0d 0d 65 6e 64 2e |kButton |*)..end.|
|00001020| 20 28 2a 20 49 43 42 75 | 74 74 6f 6e 57 68 61 74 | (* ICBu|ttonWhat|
|00001030| 20 2a 29 0d 0d 0d 0d 0d | 0d 0d 66 75 6e 63 74 69 | *).....|..functi|
|00001040| 6f 6e 20 57 68 61 74 43 | 6c 69 63 6b 42 75 74 74 |on WhatC|lickButt|
|00001050| 6f 6e 20 28 77 74 3a 20 | 57 69 6e 64 6f 77 54 79 |on (wt: |WindowTy|
|00001060| 70 65 3b 20 69 74 65 6d | 3a 20 69 6e 74 65 67 65 |pe; item|: intege|
|00001070| 72 3b 20 65 72 3a 20 65 | 76 65 6e 74 52 65 63 6f |r; er: e|ventReco|
|00001080| 72 64 29 3a 20 4f 53 45 | 72 72 3b 0d 09 63 6f 6e |rd): OSE|rr;..con|
|00001090| 73 74 0d 09 09 48 69 6c | 69 74 65 4d 6f 64 65 20 |st...Hil|iteMode |
|000010a0| 3d 20 24 39 33 38 3b 0d | 09 76 61 72 0d 09 09 64 |= $938;.|.var...d|
|000010b0| 6c 67 3a 20 44 69 61 6c | 6f 67 50 74 72 3b 0d 09 |lg: Dial|ogPtr;..|
|000010c0| 09 72 3a 20 52 65 63 74 | 3b 0d 09 09 68 69 67 68 |.r: Rect|;...high|
|000010d0| 6c 69 67 68 74 65 64 3a | 20 62 6f 6f 6c 65 61 6e |lighted:| boolean|
|000010e0| 3b 0d 09 09 73 75 69 74 | 65 3a 20 48 61 6e 64 6c |;...suit|e: Handl|
|000010f0| 65 3b 0d 09 09 6a 75 6e | 6b 3a 20 4f 53 45 72 72 |e;...jun|k: OSErr|
|00001100| 3b 0d 09 09 74 72 61 6e | 73 66 65 72 3a 20 69 6e |;...tran|sfer: in|
|00001110| 74 65 67 65 72 3b 0d 09 | 09 68 69 67 68 6c 69 67 |teger;..|.highlig|
|00001120| 68 74 5f 72 67 6e 3a 20 | 52 67 6e 48 61 6e 64 6c |ht_rgn: |RgnHandl|
|00001130| 65 3b 0d 09 09 74 6d 70 | 5f 72 67 6e 3a 20 52 67 |e;...tmp|_rgn: Rg|
|00001140| 6e 48 61 6e 64 6c 65 3b | 0d 09 09 69 63 6f 6e 5f |nHandle;|...icon_|
|00001150| 72 65 63 74 3a 20 52 65 | 63 74 3b 0d 09 09 6d 6f |rect: Re|ct;...mo|
|00001160| 75 73 65 5f 70 6f 73 3a | 20 50 6f 69 6e 74 3b 0d |use_pos:| Point;.|
|00001170| 0d 09 70 72 6f 63 65 64 | 75 72 65 20 54 6f 67 67 |..proced|ure Togg|
|00001180| 6c 65 48 69 67 68 6c 69 | 67 68 74 3b 0d 09 62 65 |leHighli|ght;..be|
|00001190| 67 69 6e 0d 09 09 68 69 | 67 68 6c 69 67 68 74 65 |gin...hi|ghlighte|
|000011a0| 64 20 3a 3d 20 6e 6f 74 | 20 68 69 67 68 6c 69 67 |d := not| highlig|
|000011b0| 68 74 65 64 3b 0d 09 09 | 69 66 20 73 79 73 74 65 |hted;...|if syste|
|000011c0| 6d 37 20 74 68 65 6e 20 | 62 65 67 69 6e 0d 09 09 |m7 then |begin...|
|000011d0| 09 69 66 20 68 69 67 68 | 6c 69 67 68 74 65 64 20 |.if high|lighted |
|000011e0| 74 68 65 6e 20 62 65 67 | 69 6e 0d 09 09 09 09 74 |then beg|in.....t|
|000011f0| 72 61 6e 73 66 65 72 20 | 3a 3d 20 74 74 53 65 6c |ransfer |:= ttSel|
|00001200| 65 63 74 65 64 3b 0d 09 | 09 09 65 6e 64 20 65 6c |ected;..|..end el|
|00001210| 73 65 20 62 65 67 69 6e | 0d 09 09 09 09 74 72 61 |se begin|.....tra|
|00001220| 6e 73 66 65 72 20 3a 3d | 20 74 74 4e 6f 6e 65 3b |nsfer :=| ttNone;|
|00001230| 0d 09 09 09 65 6e 64 3b | 20 28 2a 20 69 66 20 2a |....end;| (* if *|
|00001240| 29 0d 09 09 09 6a 75 6e | 6b 20 3a 3d 20 50 6c 6f |)....jun|k := Plo|
|00001250| 74 49 63 6f 6e 53 75 69 | 74 65 28 69 63 6f 6e 5f |tIconSui|te(icon_|
|00001260| 72 65 63 74 2c 20 61 74 | 4e 6f 6e 65 2c 20 74 72 |rect, at|None, tr|
|00001270| 61 6e 73 66 65 72 2c 20 | 73 75 69 74 65 29 3b 0d |ansfer, |suite);.|
|00001280| 09 09 65 6e 64 3b 20 28 | 2a 20 69 66 20 2a 29 0d |..end; (|* if *).|
|00001290| 09 09 69 66 20 68 61 73 | 5f 63 6f 6c 6f 72 51 44 |..if has|_colorQD|
|000012a0| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 42 | then be|gin....B|
|000012b0| 69 74 43 6c 72 28 50 74 | 72 28 48 69 6c 69 74 65 |itClr(Pt|r(Hilite|
|000012c0| 4d 6f 64 65 29 2c 20 70 | 48 69 6c 69 74 65 42 69 |Mode), p|HiliteBi|
|000012d0| 74 29 3b 0d 09 09 65 6e | 64 3b 20 28 2a 20 69 66 |t);...en|d; (* if|
|000012e0| 20 2a 29 0d 09 09 49 6e | 76 65 72 74 52 67 6e 28 | *)...In|vertRgn(|
|000012f0| 68 69 67 68 6c 69 67 68 | 74 5f 72 67 6e 29 3b 0d |highligh|t_rgn);.|
|00001300| 09 65 6e 64 3b 20 28 2a | 20 54 6f 67 67 6c 65 48 |.end; (*| ToggleH|
|00001310| 69 67 68 6c 69 67 68 74 | 20 2a 29 0d 0d 09 76 61 |ighlight| *)...va|
|00001320| 72 0d 09 09 65 72 72 3a | 20 4f 53 45 72 72 3b 0d |r...err:| OSErr;.|
|00001330| 62 65 67 69 6e 0d 09 64 | 6c 67 20 3a 3d 20 77 69 |begin..d|lg := wi|
|00001340| 6e 64 6f 77 69 6e 66 6f | 5b 77 74 5d 2e 77 69 6e |ndowinfo|[wt].win|
|00001350| 64 6f 77 3b 0d 09 47 65 | 74 49 63 6f 6e 52 65 63 |dow;..Ge|tIconRec|
|00001360| 74 28 64 6c 67 2c 20 69 | 74 65 6d 2c 20 69 63 6f |t(dlg, i|tem, ico|
|00001370| 6e 5f 72 65 63 74 29 3b | 0d 09 47 65 74 44 49 74 |n_rect);|..GetDIt|
|00001380| 65 6d 52 65 63 74 28 64 | 6c 67 2c 20 69 74 65 6d |emRect(d|lg, item|
|00001390| 2c 20 72 29 3b 0d 09 73 | 75 69 74 65 20 3a 3d 20 |, r);..s|uite := |
|000013a0| 6e 69 6c 3b 0d 09 68 69 | 67 68 6c 69 67 68 74 5f |nil;..hi|ghlight_|
|000013b0| 72 67 6e 20 3a 3d 20 4e | 65 77 52 67 6e 3b 0d 09 |rgn := N|ewRgn;..|
|000013c0| 49 6e 73 65 74 52 65 63 | 74 28 72 2c 20 31 2c 20 |InsetRec|t(r, 1, |
|000013d0| 31 29 3b 0d 09 52 65 63 | 74 52 67 6e 28 68 69 67 |1);..Rec|tRgn(hig|
|000013e0| 68 6c 69 67 68 74 5f 72 | 67 6e 2c 20 72 29 3b 0d |hlight_r|gn, r);.|
|000013f0| 09 69 66 20 73 79 73 74 | 65 6d 37 20 74 68 65 6e |.if syst|em7 then|
|00001400| 20 62 65 67 69 6e 0d 09 | 09 6a 75 6e 6b 20 3a 3d | begin..|.junk :=|
|00001410| 20 47 65 74 49 63 6f 6e | 53 75 69 74 65 28 73 75 | GetIcon|Suite(su|
|00001420| 69 74 65 2c 20 32 30 30 | 20 2b 20 69 74 65 6d 2c |ite, 200| + item,|
|00001430| 20 73 76 41 6c 6c 4c 61 | 72 67 65 44 61 74 61 29 | svAllLa|rgeData)|
|00001440| 3b 0d 09 09 74 6d 70 5f | 72 67 6e 20 3a 3d 20 4e |;...tmp_|rgn := N|
|00001450| 65 77 52 67 6e 3b 0d 09 | 09 6a 75 6e 6b 20 3a 3d |ewRgn;..|.junk :=|
|00001460| 20 49 63 6f 6e 53 75 69 | 74 65 54 6f 52 67 6e 28 | IconSui|teToRgn(|
|00001470| 74 6d 70 5f 72 67 6e 2c | 20 69 63 6f 6e 5f 72 65 |tmp_rgn,| icon_re|
|00001480| 63 74 2c 20 61 74 4e 6f | 6e 65 2c 20 73 75 69 74 |ct, atNo|ne, suit|
|00001490| 65 29 3b 0d 09 09 58 6f | 72 52 67 6e 28 74 6d 70 |e);...Xo|rRgn(tmp|
|000014a0| 5f 72 67 6e 2c 20 68 69 | 67 68 6c 69 67 68 74 5f |_rgn, hi|ghlight_|
|000014b0| 72 67 6e 2c 20 68 69 67 | 68 6c 69 67 68 74 5f 72 |rgn, hig|hlight_r|
|000014c0| 67 6e 29 3b 0d 09 09 44 | 69 73 70 6f 73 65 52 67 |gn);...D|isposeRg|
|000014d0| 6e 28 74 6d 70 5f 72 67 | 6e 29 3b 0d 09 65 6e 64 |n(tmp_rg|n);..end|
|000014e0| 3b 20 28 2a 20 69 66 20 | 2a 29 0d 09 68 69 67 68 |; (* if |*)..high|
|000014f0| 6c 69 67 68 74 65 64 20 | 3a 3d 20 66 61 6c 73 65 |lighted |:= false|
|00001500| 3b 0d 09 77 68 69 6c 65 | 20 53 74 69 6c 6c 44 6f |;..while| StillDo|
|00001510| 77 6e 20 64 6f 20 62 65 | 67 69 6e 0d 09 09 47 65 |wn do be|gin...Ge|
|00001520| 74 4d 6f 75 73 65 28 6d | 6f 75 73 65 5f 70 6f 73 |tMouse(m|ouse_pos|
|00001530| 29 3b 0d 09 09 69 66 20 | 50 74 49 6e 52 65 63 74 |);...if |PtInRect|
|00001540| 28 6d 6f 75 73 65 5f 70 | 6f 73 2c 20 72 29 20 3c |(mouse_p|os, r) <|
|00001550| 3e 20 68 69 67 68 6c 69 | 67 68 74 65 64 20 74 68 |> highli|ghted th|
|00001560| 65 6e 20 62 65 67 69 6e | 0d 09 09 09 54 6f 67 67 |en begin|....Togg|
|00001570| 6c 65 48 69 67 68 6c 69 | 67 68 74 3b 0d 09 09 65 |leHighli|ght;...e|
|00001580| 6e 64 3b 20 28 2a 20 69 | 66 20 2a 29 0d 09 65 6e |nd; (* i|f *)..en|
|00001590| 64 3b 20 28 2a 20 77 68 | 69 6c 65 20 2a 29 0d 09 |d; (* wh|ile *)..|
|000015a0| 65 72 72 20 3a 3d 20 6e | 6f 45 72 72 3b 0d 09 69 |err := n|oErr;..i|
|000015b0| 66 20 68 69 67 68 6c 69 | 67 68 74 65 64 20 74 68 |f highli|ghted th|
|000015c0| 65 6e 20 62 65 67 69 6e | 0d 09 09 54 6f 67 67 6c |en begin|...Toggl|
|000015d0| 65 48 69 67 68 6c 69 67 | 68 74 3b 0d 09 09 65 72 |eHighlig|ht;...er|
|000015e0| 72 20 3a 3d 20 57 69 6e | 64 6f 77 73 4f 70 65 6e |r := Win|dowsOpen|
|000015f0| 28 57 69 6e 64 6f 77 54 | 79 70 65 28 6f 72 64 28 |(WindowT|ype(ord(|
|00001600| 57 54 5f 50 65 72 73 6f | 6e 61 6c 29 20 2b 20 69 |WT_Perso|nal) + i|
|00001610| 74 65 6d 20 2d 20 31 29 | 2c 20 32 30 30 20 2b 20 |tem - 1)|, 200 + |
|00001620| 69 74 65 6d 29 3b 0d 09 | 65 6e 64 3b 20 28 2a 20 |item);..|end; (* |
|00001630| 69 66 20 2a 29 0d 09 69 | 66 20 73 75 69 74 65 20 |if *)..i|f suite |
|00001640| 3c 3e 20 6e 69 6c 20 74 | 68 65 6e 20 62 65 67 69 |<> nil t|hen begi|
|00001650| 6e 0d 09 09 6a 75 6e 6b | 20 3a 3d 20 44 69 73 70 |n...junk| := Disp|
|00001660| 6f 73 65 49 63 6f 6e 53 | 75 69 74 65 28 73 75 69 |oseIconS|uite(sui|
|00001670| 74 65 2c 20 66 61 6c 73 | 65 29 3b 0d 09 65 6e 64 |te, fals|e);..end|
|00001680| 3b 20 28 2a 20 69 66 20 | 2a 29 0d 09 69 66 20 68 |; (* if |*)..if h|
|00001690| 69 67 68 6c 69 67 68 74 | 5f 72 67 6e 20 3c 3e 20 |ighlight|_rgn <> |
|000016a0| 6e 69 6c 20 74 68 65 6e | 20 62 65 67 69 6e 0d 09 |nil then| begin..|
|000016b0| 09 44 69 73 70 6f 73 65 | 52 67 6e 28 68 69 67 68 |.Dispose|Rgn(high|
|000016c0| 6c 69 67 68 74 5f 72 67 | 6e 29 3b 0d 09 65 6e 64 |light_rg|n);..end|
|000016d0| 3b 20 28 2a 20 69 66 20 | 2a 29 0d 09 57 68 61 74 |; (* if |*)..What|
|000016e0| 43 6c 69 63 6b 42 75 74 | 74 6f 6e 20 3a 3d 20 65 |ClickBut|ton := e|
|000016f0| 72 72 3b 0d 65 6e 64 3b | 20 28 2a 20 57 68 61 74 |rr;.end;| (* What|
|00001700| 43 6c 69 63 6b 42 75 74 | 74 6f 6e 20 2a 29 00 00 |ClickBut|ton *)..|
|00001710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00001790| 66 4e 75 6d 2c 20 66 73 | 73 2e 70 61 72 49 44 2c |fNum, fs|s.parID,|
|000017a0| 20 66 73 73 2e 6e 61 6d | 65 2c 20 49 43 63 72 65 | fss.nam|e, ICcre|
|000017b0| 0e 49 43 42 75 74 74 6f | 6e 57 68 61 74 2e 70 49 |.ICButto|nWhat.pI|
|000017c0| 02 00 00 00 54 45 58 54 | 43 57 49 45 00 00 00 00 |....TEXT|CWIE....|
|000017d0| 00 00 54 45 58 54 43 57 | 49 45 00 00 00 00 00 80 |..TEXTCW|IE......|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 aa 8e 8c 46 00 00 | 16 8e 00 00 01 9a 20 72 |.....F..|...... r|
|00001800| 72 65 66 29 3b 0d 09 09 | 09 69 66 20 65 72 72 20 |ref);...|.if err |
|00001810| 3d 20 6e 6f 45 72 72 20 | 74 68 65 6e 20 62 65 67 |= noErr |then beg|
|00001820| 69 6e 0d 09 09 09 09 65 | 72 72 20 3a 3d 20 53 65 |in.....e|rr := Se|
|00001830| 74 45 4f 46 28 72 72 65 | 66 2c 20 47 65 74 48 61 |tEOF(rre|f, GetHa|
|00001840| 6e 64 6c 65 53 69 7a 65 | 28 74 68 6e 67 29 29 3b |ndleSize|(thng));|
|00001850| 0d 09 09 09 09 69 66 20 | 65 72 72 20 3d 20 6e 6f |.....if |err = no|
|00001860| 45 72 72 20 74 68 65 6e | 20 62 65 67 69 6e 0d 09 |Err then| begin..|
|00001870| 09 09 09 09 65 72 72 20 | 3a 3d 20 46 53 57 72 69 |....err |:= FSWri|
|00001880| 00 00 00 48 00 09 47 65 | 6e 65 76 61 00 00 00 00 |...H..Ge|neva....|
|00001890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018a0| 00 00 00 00 00 00 00 03 | 00 02 00 64 00 0e 01 d3 |........|...d....|
|000018b0| 02 6d 00 64 00 0e 01 d3 | 02 6d ae 0e da bf 00 00 |.m.d....|.m......|
|000018c0| 05 ab 00 00 05 ab 00 00 | 03 fe 01 00 00 00 00 04 |........|........|
|000018d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000018e0| 00 00 00 46 00 65 49 d0 | 10 2a 00 00 00 1c 00 46 |...F.eI.|.*.....F|
|000018f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00001900| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00001910| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00001920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+